package com.zeng.log;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.context.annotation.Bean;

import java.lang.reflect.Method;

/**
 * @author zeng
 * @data 2021/06/10 16:59
 */
public class Afterlog implements AfterReturningAdvice {
    /**
     *
     * @param returnValue 返回对象
     * @param method  使用方法
     * @param args 传入参数
     * @param target 目标
     * @throws Throwable
     */
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println(method.getName() + "执行了" + returnValue);
    }
}
